<template>
  <div class="list">
    <div class="list-item" v-for="(item,index) of list" :key="index">
     <div>{{item.title}}</div>
      <div v-if="item.children">
        <detail-list :list="item.children" class="children"></detail-list>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetailList',
  props: ['list']
}
</script>

<style lang="stylus" scoped>
  .list-item
    margin-left:.2rem
    line-height:.88rem
</style>
